Learn R Programming

Rfast (version 1.2)

Find the given value in a hash table: Find the given value in a hash table

Description

Find the given value in a hash table.

Usage

hash.find(x,key)

Arguments

x
A hash table.
key
The key for searching the table.

Value

If the given key exists return its value else returns 0.

Details

This function search the given key.

See Also

generate_key_1,generate_key_2

Examples

Run this code
x <- hash.list(letters,c(1:26))
value <- hash.find(x,"a")
x[["a"]]==value

Run the code above in your browser using DataLab